package com.eazy.lkv2.web.controller.activity;

import com.eazy.lkv2.web.controller.BaseController;
import com.eazy.lkv2.web.entity.SignUpUser;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by hpb on 2018/5/6.
 *
 * 目前签到存在问题：
 * 如操作人员问题，后续可通过发送验证短信进行签到确认
 */
@Controller("activitySign")
@RequestMapping("/sign")
public class signupUserController extends BaseController<SignUpUser,String> {


    /**
     *
     * @return
     */
    @RequestMapping(value = "/list", method = RequestMethod.GET)
    public String list(Model model) {
        return "activity/activity_user_list";
    }

    /**
     * 手动签到
     * @param id
     * @return
     */
    @RequestMapping(value = "signIn/{id}", method = RequestMethod.POST)
    @ResponseBody
    public String enableActivity(@PathVariable("id") String id) {
        return "success";
    }
}
